cc = gcc
all:echoclient echoserver

echoclient: echoclient.c.o rio.c.o socket.c.o
	cc echoclient.c.o rio.c.o socket.c.o -o echoclient

echoserver: echoserveri.c.o rio.c.o socket.c.o
	cc echoserveri.c.o rio.c.o socket.c.o -o echoserver

echoclient.c.o: echoclient.c
	cc -c echoclient.c -o echoclient.c.o

echoserveri.c.o: echoserveri.c
	cc -c echoserveri.c -o echoserveri.c.o

rio.c.o: rio/rio.c
	cc -c rio/rio.c -o rio.c.o

socket.c.o: socket/socket.c
	cc -c socket/socket.c -o socket.c.o

make clean:
	@rm -f *.o echoclient echoserver